aux_source_directory(./src SRC)

add_library(memory ${SRC})
target_include_directories(memory PUBLIC ./include)

if(CMAKE_BUILD_TYPE STREQUAL "Debug")

    find_package(GTest REQUIRED)
    if(GTEST_FOUND)
        add_library(memory_test ${SRC})
        target_compile_options(memory_test PUBLIC -DDEBUG PUBLIC -DUNIT_TEST PRIVATE -g)
        target_include_directories(memory_test PUBLIC ${GTEST_INCLUDE_DIRS} ./include)
    endif(GTEST_FOUND)
    
endif(CMAKE_BUILD_TYPE STREQUAL "Debug")

